package jzqb.dao.impl;

import cnki.tpi.kbatis.sqlsession.SqlSession;
import cnki.tpi.kbatis.utils.DataSourceUtil;
import jzqb.dao.IZTreeDao;
import jzqb.po.AdminDepartmentPo;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Description:
 *
 * @author BaiGe
 * @date: 2021/4/9 16:20
 * @Version 1.0
 */
@Repository
public class ZTreeDaoImpl  implements IZTreeDao {
    @Override
    public List<AdminDepartmentPo> getDeptTree() {
        SqlSession sqlSession = DataSourceUtil.getSqlSession();
        String statementId = "jzqb.dao.IZTreeDao.getDeptTree";
        return sqlSession.selectList(statementId,null,false);
    }

}
